<?php

namespace App\Http\Controllers;

use App\Mail\OrderShipped;
use App\Models\Blog;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;

class TestController extends Controller
{
    /**
     * Handle the incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function __invoke(Blog $blog)
    {
       Mail::to('422262731@qq.com')->send(new OrderShipped('hello'));
    }
    /**
     * 开启路由缓存
     * php artisan route:cache
     * 开启配置文件缓存
     * php artisan config:cache
     */
}
